package com.muyu.remote;

import com.muyu.common.core.constant.ServiceNameConstants;
import com.muyu.common.core.domain.Result;
import com.muyu.remote.factory.DanmoMarketProductsFactory;
import com.muyu.system.domain.DanmoMarketProducts;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 书画市场添加 DanmoMarketProductsAdd
 *
 * @author LeYang
 * on 2025/1/16
 */
@FeignClient(
        contextId = "DanmoMarketProductsFactory",
        value = ServiceNameConstants.MARKET_SERVICE,
        fallbackFactory = DanmoMarketProductsFactory.class,
        path = "/markProducts"
)
public interface DanmoMarketProductsAdd {

    @PostMapping("/add")
    public Result add(@RequestBody DanmoMarketProducts danmoMarketProducts);
}
